﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Payments
/// </summary>
namespace CE.CarInsurance
{
    public class Payments
    {
        private Int64 _paymentid;
	    private string _quoterefno;
	    private Int64 _cecarid; 
	    private Int64 _providercompanyid;
	    private Int64 _refceuserid;
	    private Int64 _agentid;
	    private Int64 _adminid;
	    private string _paymenttype;
	    private string _paymentmode;
        private string _paymentoption;
        private Int16 _noofinstallments;
        private string _paymentbank;
        private float _collectedamount;
        private float _amountwithinterest;
        private Int16 _transactiontype;
        private Int16 _approvetype;
	    private string _paymentrefno;
        private string _cardholder;
        private string _issuingbank;
        private string _creditcardno;
        private string _cardexpirymonth;
        private string _cardexpiryyear;
        private string _cardtype;
        private string _cvv;
        private Int16 _isonlinepayment;
        private bool _status;
        private Int32 _noofdays;
        private Int32 _usertypeid;
        private string _info2; // Agent Remarks

        public Payments()
        {
            ClearFields();
        }

        public Int64 PaymentId
        {
            get { return _paymentid; }
            set { _paymentid = value; }
        }

        public string QuoteRefNo
        {
            get { return _quoterefno; }
            set { _quoterefno = value; }
        }

        public Int64 CECarId
        {
            get { return _cecarid; }
            set { _cecarid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 AgentId
        {
            get { return _agentid; }
            set { _agentid = value; }
        }

        public Int64 AdminId
        {
            get { return _adminid; }
            set { _adminid = value; }
        }

        public string PaymentType
        {
            get { return _paymenttype; }
            set { _paymenttype = value; }
        }

        public string PaymentMode
        {
            get { return _paymentmode; }
            set { _paymentmode = value; }
        }

        public string PaymentOption
        {
            get { return _paymentoption; }
            set { _paymentoption = value; }
        }

        public Int16 NoofInstallments
        {
            get { return _noofinstallments; }
            set { _noofinstallments = value; }
        }

        public string PaymentBank
        {
            get { return _paymentbank; }
            set { _paymentbank = value; }
        }

        public float CollectedAmount
        {
            get { return _collectedamount; }
            set { _collectedamount = value; }
        }

        public float AmountwithInterest
        {
            get { return _amountwithinterest; }
            set { _amountwithinterest = value; }
        }

        public Int16 TransactionType
        {
            get { return _transactiontype; }
            set { _transactiontype = value; }
        }

        public Int16 ApproveType
        {
            get { return _approvetype; }
            set { _approvetype = value; }
        }

        public string PaymentRefNo
        {
            get { return _paymentrefno; }
            set { _paymentrefno = value; }
        }

        public string CardHolder
        {
            get { return _cardholder; }
            set { _cardholder = value; }
        }

        public string IssuingBank
        {
            get { return _issuingbank; }
            set { _issuingbank = value; }
        }

        public string CreditCardNo
        {
            get { return _creditcardno; }
            set { _creditcardno = value; }
        }

        public string CardExpiryMonth
        {
            get { return _cardexpirymonth; }
            set { _cardexpirymonth = value; }
        }

        public string CardExpiryYear
        {
            get { return _cardexpiryyear; }
            set { _cardexpiryyear = value; }
        }

        public string CardType
        {
            get { return _cardtype; }
            set { _cardtype = value; }
        }

        public string CVV
        {
            get { return _cvv; }
            set { _cvv = value; }
        }

        public Int16 IsOnlinePayment
        {
            get { return _isonlinepayment; }
            set { _isonlinepayment = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int32 NoOfDays
        {
            get { return _noofdays; }
            set { _noofdays = value; }
        }

        public Int32 UserTypeId
        {
            get { return _usertypeid; }
            set { _usertypeid = value; }
        }

        public string Info2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public void ClearFields()
        {
            _paymentid = 0;
	        _quoterefno = "";
	        _cecarid = 0; 
	        _providercompanyid = 0;
	        _refceuserid = 0;
	        _agentid = 0;
	        _adminid = 0;
	        _paymenttype = "";
	        _paymentmode = "";
	        _paymentoption = "";
            _noofinstallments = 1;
            _paymentbank = "";
            _collectedamount = 0.0f;
            _amountwithinterest = 0.0f;
	        _transactiontype = 0;
            _approvetype = 0;
	        _paymentrefno = "";
            _cardholder = "";
            _issuingbank = "";
            _creditcardno = "";
            _cardexpirymonth = "";
            _cardexpiryyear = "";
            _cardtype = "";
            _cvv = "";
            _isonlinepayment = 0;
	        _status = false;
            _noofdays = 0;
            _usertypeid = 400;
            _info2 = "";
        }

    }
}